import { responseTypeInterface } from "@/api/user/interface.ts";

export interface category {
  createTime: string;
  updateTime: string;
  name: string;
  id: number | string;
  category1Id?: number;
  category2Id?: number;
}


export interface responseCategory extends responseTypeInterface {
  data: category[];
}


export interface attributeValue {
  attrId?: number;
  createTime?: any;
  id?: number;
  updateTime?: any;
  valueName: string;
  isEdit?:boolean
}

export interface attribute {
  attrName: string;
  attrValueList: attributeValue[];
  categoryId: number;
  categoryLevel: number;
  id?: number;
  createTime?: any;
  updateTime?: any;
}

export interface responseAttributeList extends responseTypeInterface {
  data: attribute[];
}
